# -*- coding: utf-8 -*-

transcation_env = 'mock'
urls = {
    'test': {
        'um': 'http://fapi.xt-qa.com',
        'cm': ''
    },
    'dev': {
        'um': 'http://futures.xt-dev.com/fapi',
        'cm': ''
    },
    'mock': {
        'um': 'https://fapi-mock.xt.com',
        'cm': 'https://dapi-mock.xt.com'
    }
}
cm_future_address = urls.get(transcation_env).get('cm')
um_future_address = urls.get(transcation_env).get('um')

keys = {
    # test
    # 'xrp_usdt': ['b1000aa0-9119-4ce7-a963-e7a0fe0055cb', 'b9992066608e6b84b531cbf1bf36b06e9a79add8'],
    # 'xrp_usdt': ['fd47e853-1997-435e-ae3f-a30524d24903', 'c2e5a19e0d7f7aa6b9c5b7c2caa5a736024eaf50'],
    
    # mock
    'btc_usd': ['481c1397-7e1e-41cd-ab3f-f1a4ff5fc797', '4bdc97467604dba83127ddda22d9c3f84ef15eea'],
    'xrp_usdt': ['301aaf00-93f3-4214-84e0-b5eea0318ecb', 'b02fdb98f4fb79000b7bc6824f89f7e0189efdd6']
}


# EVENT-META
SEND_ORDER_EVENT = "SEND_ORDER_EVENT"
CANCEL_ORDER_EVENT = "CANCEL_ORDER_EVENT"
ACCOUNT_INFO_EVENT = "ACCOUNT_INFO_EVENT"
BALANCE_EVENT = "BALANCE_EVENT"
OPEN_ORDERS_EVENT = "OPEN_ORDERS_EVENT"


# EVENT-API
EVENT_DESCRIBE = "EVENT_DESCRIBE"
XT_SEND_ORDER_EVENT = "XT" + SEND_ORDER_EVENT
XT_CANCEL_ORDER_EVENT = "XT" + CANCEL_ORDER_EVENT
XT_ACCOUNT_INFO_EVENT = "XT" + ACCOUNT_INFO_EVENT


# EVENT-FUTURE
XTFUTURE_BALANCE_EVENT = "XTFUTURE" + BALANCE_EVENT
XTFUTURE_SEND_ORDER_EVENT = "XTFUTURE" + SEND_ORDER_EVENT
XTFUTURE_CANCEL_ORDER_EVENT = "XTFUTURE" + CANCEL_ORDER_EVENT
XTFUTURE_OPEN_ORDER_EVENT = "XTFUTURE" + OPEN_ORDERS_EVENT
